﻿using IM.Easy.Core.Middleware;
using Microsoft.AspNetCore.Builder;
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Core.Extensions
{
    public static class BuilderExtensions
    {
        public static IApplicationBuilder UseImExceptionHandle(this IApplicationBuilder app)
        {
            app.UseMiddleware<ImExceptionHandlingMiddleware>();
            return app;
        }
    }
}
